(function () {
    'use strict';
    angular.module('module.record-system').config(configure);
    configure.$inject = ['$stateProvider'];

    function configure($stateProvider) {
        $stateProvider
            .state('home.record_system', {
                url: 'record_system',
                views: {
                    'content@': {
                        templateUrl: 'app/module/business/record/system/record-system.view.html',
                        controller: 'RecordSystemController',
                        controllerAs:'recordSystem',
                        resolve: {
                            deps: lazyLoadRecordSystem
                        }
                    }
                },
                data: {
                    pageTitle: '备案信息系统信息',
                    requiresLogin: false
                }
            });
    }

    lazyLoadRecordSystem.$injector = ['$ocLazyLoad'];

    function lazyLoadRecordSystem($ocLazyLoad) {
        return $ocLazyLoad.load({
            name: 'module.blank',
            insertBefore: '#ng_load_plugins_before',
            files: [
                'app/module/business/record/system/record-system.controller.js',
                'app/module/business/record/system/record-system.css',
                'app/module/business/record/system/create/controller.js',
                'app/module/business/record/system/update/controller.js',
                'app/module/business/record/system/alter/controller.js',
                'app/module/business/record/system/detail/system/controller.js',
                'app/module/business/record/system/detail/unit/controller.js',
                'app/module/business/record/system/detail/audit/controller.js',
                'app/module/business/record/system/detail/alter/controller.js',
            ]
        });
    }
})();